package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.ClassesDO;
import com.pipi.sso.dao.query.ClassesQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Classes.
 */
public interface ClassesManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ClassesQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ClassesQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ClassesDO record);

    /**
     * insert selective.
     */
    long insertSelective(ClassesDO record);

    /**
     * select by query condition.
     */
    List<ClassesDO> selectByQuery(ClassesQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ClassesDO> selectByQueryWithPage(ClassesQuery query);

    /**
     * select by primary key.
     */
    ClassesDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ClassesDO record,  ClassesQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ClassesDO record, ClassesQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ClassesDO record);
}